﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.Entity;
using COM.OA.BLL;

public partial class gxxz_leibie : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        //取出要更新文件的ID
        files f = (files)Session["file"];
        int id = f.f_id;
        //取出要更新的类别ID
        int typeid =Int32.Parse( this.ddl_type.Text);

        files file = filesBLL.Select(id);
        file.f_ftype_id = typeid;
        filesBLL.Update(file);
        this.Response.Write(string.Format(GetRedirect.WINALERT,"更新成功"));
        this.Response.Write(string.Format(GetRedirect.REDIRECT,"lb_adminupload.aspx"));
    }
}
